home *** CD-ROM | disk | FTP | other *** search
- ; RipOff, version 2.000
- ;
- ; Qmodem 5.01 script for adding taglines to messages written online,
- ; using Qmodem and the Tagline Express (TLX) program.
- ; Based on a similar script written by:
- ; Written by Maurice Crouse, 29 March 1990.
- ; Revision 0.02 written 2 April 1990.
- ; Revision 0.03 written 12 April 1990.
- ; Qmodem adaptation written 24 April 1990.
- ;
- ; See TLX documentation on how to use the offline taglines features.
- ; Setup TLX in QM\SCRIPT dir and run config using GENERIC mailreader option
- ; leave TLX.TAG as tagline file and create it as ascii with at least 1
- ; tagline in it. You can use this file as your only tagline file and forego
- ; TLX's build a database feature.
-
- string logo tear enter space tlxdir qmdir tagline ;define variables
- assign logo " *RipOff_2.000* " ;logo
- assign tear "---" ;"tear" line
- assign enter "^M" ;equate for Return
- assign space " " ;equate for space character
- assign tlxdir "c:\QM\SCRIPT" ;put your TLX directory here
- assign qmdir "c:\qm" ;put your Qmodem directory here
- chdir $tlxdir ;change to TLX directory
- exist TLX.exe foundtlx ;see if TLX is there,
- displayln "Can't run TLX." ;if not, admit error.
- goto goterror
- foundtlx:
- dos "TLX -g c:\qm\script c:\qm\script\tlx.tag" ;run TLX NOTE ascii TLX.TAG
- ;needed for .REP file
- exist TLX.TAG foundrep ;verify .REP file is there,
- displayln "Can't find the tagline file." ;if not, admit error.
- goto goterror
- foundrep:
- openfile tlx.tag read ;open .REP file for reading
- readfile tagline ;copy tagline to variable
- ;at this point TLX will allow you to go to database, select
- ; or edit the tagline enter a new one or exit.
- closefile ;close .REP file
- chdir $qmdir ;change back to Qmodem directory
- send "$space" ;create a blank line
- send "$enter"
- send "$tear" ;send the "tear" line
- send "$enter"
- send "$logo" ;send the logo
- send "$tagline" ;send the tagline
- send "$enter"
- exit
- goterror: ;if we end up here, an error was made
- closefile ;close .REP file
- displayln "Sorry, can't add the tagline." ;admit failure
- chdir $qmdir ;change back to Qmodem directory
- exit
-